package org.coderk.mybatis.listener;

import org.coderk.mybatis.event.HelloEvent;
import org.coderk.mybatis.event.HelloManEvent;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


/**
 * @author: TanJingyu
 * @create: 2021-04-05 15:35
 **/
@Component
public class HelloManEventListener {

    @EventListener({HelloManEvent.class})
    public ApplicationEvent full(ApplicationEvent event) {
        System.out.println(event.getSource());
        return new HelloEvent("hello......");
    }
}
